package com.shelpe.services.sinbadgateway.client;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.shelpe.services.sinbadgateway.dto.UserDto;


@FeignClient(name="${feign.simbasync.serviceID}", url="${feign.simbasync.url}")
@RequestMapping(value = "/simbasync")
public interface SyncUserClient {

	@RequestMapping(method = RequestMethod.GET, value = "/tenants/{user_id}/@purchaseuser")//添加订购用户
	public UserDto createAndAddPurchaseUser(@PathVariable("user_id") Long userId, @RequestParam("nick") String nick);
	
}
